<include file="Public/header"/>

<div class="x-nav">
      <span class="layui-breadcrumb">

      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="x-body">

      <xblock>
        <button class="layui-btn" onclick="x_admin_show('添加规则','{:U('add')}')"><i class="layui-icon"></i>添加</button>

        <span class="x-right" style="line-height:40px">共有数据：{$count} 条</span>
      </xblock>
      <table class="layui-table">
        <thead>
          <tr>

            <th>ID</th>
            <th>权限规则</th>
            <th>权限名称</th>
            <th>所属分类</th>
            <th>状态</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
        <foreach name="info" item="v">
          <tr>
            <td>{$v.id}</td>
            <td>{$v.name}</td>
            <td>{$v.title}</td>
            <td>{$v.parentname}</td>
            <td><if condition="$v.status eq 1" ><font color='green'>正常</font><else/><font color='red'>停用</font></if></td>
            <td class="td-manage">
              <a title="编辑" class="layui-btn layui-btn-xs"  onclick="x_admin_show('编辑','{:U('modi',array('nid'=>$v['id']))}')" href="javascript:;">
                编辑
              </a>

              <a title="删除"  class="layui-btn layui-btn-warm layui-btn-xs" onclick="single_del(this,'{$v['id']}','{:U('del')}')" href="javascript:;">
                删除
              </a>
            </td>
          </tr>

        </foreach>


        </tbody>
      </table>
      <div class="page" id="page">
        {$page}
      </div>

    </div>
    <script>



    </script>

<include file="Public/footer"/>

